﻿using RsCms.Entities;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace RsCms.Application.Posts.Dto
{
    public class PostEditDto
    {
        [JsonPropertyName("id")]
        public string Id { get; set; } = "";
        [JsonPropertyName("md")]
        public string Markdown { get; set; } = "";
		[JsonPropertyName("html")]
		public string Html { get; set; } = "";

		[JsonPropertyName("canonical_url")]
        public string CanonicalUrl { get; set; } = "";

        [JsonPropertyName("codeinjection_foot")]
        public string CodeinjectionFoot { get; set; } = "";

        [JsonPropertyName("codeinjection_head")]
        public string CodeinjectionHead { get; set; } = "";
        [JsonPropertyName("feature")]
        public sbyte Featured { get; set; }

        [JsonPropertyName("feature_image")]
        public string FeatureImage { get; set; } = "";
       
       

        [JsonPropertyName("locale")]
        public string Locale { get; set; } = "";

        [JsonPropertyName("mobiledoc")]
        public string Mobiledoc { get; set; } = "";

        [JsonPropertyName("plaintext")]
        public string Plaintext { get; set; } = "";

       

        [JsonPropertyName("published_by")]
        public string PublishedBy { get; set; } = "";

       

        [JsonPropertyName("slug")]
        public string Slug { get; set; } = "";

        [JsonPropertyName("status")]
        public string Status { get; set; } = "";

        [JsonPropertyName("title")]
        public string Title { get; set; } = "";

        [JsonPropertyName("type")]
        public string Type { get; set; } = "";

        


        [JsonPropertyName("visibility")]
        public string Visibility { get; set; } = "public";

        [JsonPropertyName("tags")]
        public string Tags { get; set; } = "";

        [JsonPropertyName("metas")]
        public List<PostsMeta> posts_metas { get; set; } = new List<PostsMeta>();
    }
}
